<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;
use GuzzleHttp\Client;

class TestCmd extends Command{

    public $signature = 'test:test';

    public function handle()
    {
        log_daily('test')->info('4444');


        // $client = new Client();
        // $res = $client->request("GET", "http://localhost:8811/api/managecmd/send?cmd=AdminChangeLayer abc 123",[
        //     // 'query' => ['cmd' => "AdminChangeLayer Yehorivka_Skirmish_v3"]
        // ]);
        // dump($res->getHeader('content-type'));
        // dump($res->getBody()->getContents());


        // $client = new Client([
        //     'headers' => [
        //         "Content-type" => 'application/json'
        //     ]
        // ]);
        // $res = $client->request('post', 'http://localhost:8811/api/managecmd/add', [
        //     'json' => [
        //         'id' => "idssss",
        //         'time' => "时间四十四",
        //         'ip' => "ippp",
        //         'content' => "contenteee"
        //     ]
        // ]);
        // dump($res->getStatusCode());
        // dump($res->getHeader('content-type'));
        // dump($res->getBody()->getContents());
    }

}


